package com.cloud.cmt.cmtcontrol.service.impl;

import com.cloud.cmt.cmtcontrol.dao.DemoRepository;
import com.cloud.cmt.cmtcontrol.entity.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * User: wcy
 * Date: 2017/9/5
 * Time: 17:36
 */
@Service("userService")
public class UserServiceImpl {

    @Autowired
    DemoRepository demoRepository;

    public UserInfo getUserInfoById(Integer id) {
        return demoRepository.getOne(Long.valueOf(id));
    }
}